home *** CD-ROM | disk | FTP | other *** search
/ Satanic Rites 1 / Satanic Rites - Issue 1 (1992-05-17)(Destiny).adf / T / Instruct < prev    next >
Text File  |  2021-10-01  |  4KB  |  94 lines

  1. {7
  2. ************************************
  3. *    }2The 68000 Instruction Set{7     *
  4. ************************************
  5.  
  6. {3If you are interested in programming
  7. in assembler then it would be a good
  8. idea to learn the instruction set !!{7
  9.  
  10. {7ABCD  {6Srce,Dest  - {3Add 2 BCD nums
  11. {7ADD   {6Srce,Dest  - {3Binary addition
  12. {7ADDA  {6Srce,An    - {3Add to address reg
  13. {7ADDI  {6#n,ea      - {3Add with constant
  14. {7ADDQ  {6#n,ea      - {3Add using bits 0-7
  15. {7ADDX  {6Srce,Dest  - {3Add ; transfer to X
  16. {7AND   {6Srce,Dest  - {3Logical AND
  17. {7ANDI  {6#n,ea      - {3AND with constant
  18. {7ASL   {6#n,ea      - {3Maths shift left
  19. {7ASR   {6#n,ea      - {3Maths shift right
  20. {7Bcc   {6Label      - {3Branch on condition
  21. {7BCHG  {6#n,ea      - {3Change bit
  22. {7BCLR  {6#n,ea      - {3Clear bit
  23. {7BRA   {6Label      - {3Branch to label
  24. {7BSET  {6#n,ea      - {3Bit set
  25. {7BSR   {6Label      - {3Branch to routine
  26. {7BTST  {6#n,ea      - {3Test bit > Z flag
  27. {7CHK   {6ea,Dx      - {3Check data register
  28. {7CLR   {6ea         - {3Clear an operand
  29. {7CMP   {6Srce,Dest  - {3Compare operands
  30. {7CMPA  {6ea,An      - {3Compare address reg
  31. {7CMPI  {6#n,ea      - {3Compare constant
  32. {7CMPM  {6Srce,Dest  - {3Compare in memory
  33. {7DBcc  {6Reg,Label  - {3-1 then branch
  34. {7DIVS  {6Srce,Dest  - {332 bit div to 16
  35. {7DIVU  {6Srce,Dest  - {3As above less sign
  36. {7EOR   {6Srce,Dest  - {3Exclusive OR
  37. {7EORI  {6#n,ea      - {3EOR with constant
  38. {7EXG   {6Rn,Rn      - {3Exchange 2 regs
  39. {7EXT   {6Dn         - {3Extension to 32 bit
  40. {7JMP   {6Label      - {3Jump
  41. {7JSR   {6Label      - {3Jump to routine
  42. {7LEA   {6ea,An      - {3Address into A-reg
  43. {7LINK  {6An,#n      - {3Build stack area
  44. {7LSL   {6#n,ea      - {3Logical shift left
  45. {7LSR   {6#n,ea      - {3Logical shift right
  46. {7MOVE  {6Srce,Dest  - {3Transfer S -> D
  47. {7MOVE  {6SR,ea      - {3Transfer SR content
  48. {7MOVE  {6ea,SR      - {3Transfer SR content
  49. {7MOVE  {6ea,CCR     - {3Load flags
  50. {7MOVE  {6USP,ea     - {3Trnasfer user SP
  51. {7MOVE  {6ea,USP     - {3Transfer user SP
  52. {7MOVEA {6ea,An      - {3Transfer to A-reg
  53. {7MOVEM {6Regs,ea    - {3Transfer many regs
  54. {7MOVEM {6ea,Regs    - {3Transfer many regs
  55. {7MOVEP {6Srce,Dest  - {3Transfer to device
  56. {7MOVEQ {6#n,Dn      - {3Quick trans 8 bits
  57. {7MULS  {6Srce,Dest  - {316 bit mul to 32
  58. {7MULU  {6Srce,Dest  - {3As above less sign
  59. {7NBCD  {6Srce,Dest  - {3Negate BCD number
  60. {7NEG   {6ea         - {3Negate number
  61. {7NEGX  {6ea         - {3Negate with trans
  62. {7NOP   {6           - {3No operation
  63. {7NOT   {6ea         - {3Invert operand
  64. {7OR    {6Srce,Dest  - {3Logical OR
  65. {7ORI   {6#n,ea      - {3OR with constant
  66. {7PEA   {6ea         - {3Address -> Stack
  67. {7RESET {6           - {3Reset devices
  68. {7ROL   {6#n,ea      - {3Rotate left
  69. {7ROR   {6#n,ea      - {3Rotate right
  70. {7ROXL  {6#n,ea      - {3Rotate left -> X
  71. {7ROXR  {6#n,ea      - {3Rotate right -> X
  72. {7RTE   {6           - {3Return from except
  73. {7RTR   {6           - {3Return; load flags
  74. {7RTS   {6           - {3Return from routine
  75. {7SBCD  {6Srce,Dest  - {3Sub 2 BCD numbers
  76. {7Scc   {6ea         - {3Set to -1 if true
  77. {7STOP  {6           - {3Stop work
  78. {7SUB   {6Srce,Dest  - {3Binary subtraction
  79. {7SUBA  {6ea,An      - {3Subtract from A-reg
  80. {7SUBI  {6#n,ea      - {3Subtract constant
  81. {7SUBQ  {6#n,ea      - {3Fast sub of 3 bits
  82. {7SUBX  {6Srce,Dest  - {3Sub; trans to X
  83. {7SWAP  {6Dn         - {3Swap halves of reg
  84. {7TAS   {6ea         - {3Test + set bit 7
  85. {7TRAP  {6#n         - {3Jump to exception
  86. {7TRAPV {6           - {3Check overflow+ TST
  87.  
  88. {1(As this is the first time I've seen 
  89. this, I assume Spud put it in! 
  90. Cheers mate! I hope people find it
  91. useful - don't forget SR has a print
  92. option!! -Ed)
  93.  
  94. {7UNLK  {6An         - {3Un-link stack area